package or.exa.cangguan.mapper;

import or.exa.cangguan.common.Page;
import or.exa.cangguan.entity.dto.OutOperationDto;
import or.exa.cangguan.entity.po.OutOperation;
import or.exa.cangguan.entity.vo.OutOperationVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OutOperationMapper {
    int deleteByPrimaryKey(Integer id);

    int deleteByOutId(Integer outId);

    String selectStatus(@Param("outId") Integer outId);

    Integer selectExeName(@Param("outId") Integer outId);

    int selectCount(OutOperationVo outOperationVo);


    Integer selectIdByOutId(@Param("outId") Integer outId);

    int insert(OutOperation record);

    int insertSelective(OutOperation record);

    List<OutOperationDto> selectByPrimaryKey(@Param("outOperationVo") OutOperationVo outOperationVo,
                                             @Param("page") Page page);

//    int insertId(Integer id);

    int updateByPrimaryKeySelective(OutOperation record);

    int updateByPrimaryKey(OutOperation record);

    int updateStatus(@Param("outId") Integer outId,@Param("status") String status);
}